package com.cy.service.news;

import java.util.List;

import us.codecraft.webmagic.Spider;

import com.cy.bean.news.News;
import com.cy.service.base.DAO;
/**
 * 新闻Service接口
 * @author CY
 *
 */
public interface NewsService extends DAO<News> {
	
	public Spider getSpider();

	public void setSpider(Spider spider);
	
	/**
	 * 上一篇
	 * @param value
	 * @return
	 */
	public News prev(Object value);
	
	/**
	 * 下一篇
	 * @param value
	 * @return
	 */
	public News next(Object value);
	
	/**
	 * 热点新闻
	 * @return
	 */
	public List<News> hotNews();

}
